All Functions of Week 3

seq

{base}

Create a sequence

hist

{graphics}

Plot a simple histogram

get_mode

{rstatix}

Compute the mode in a given vector.

sample

{base}

Takes a sample of the specified size

mean

{base}

Get mean of a vector

matrix

{base}

Creates a matrix from the given set of values.

after_stat

{GGPLOT2}

Control aesthetic evaluation. On the module used for displying percent

round

{base}

Rounds numbers

order

{base}

Get indexes that will sort a vector

setwd

{base}

Set Working Directory

attach

{base}

Attach Set of R Objects to Search Path

class

{base}

Retrieve class of an R object

str

{utils}

Get the structure of an R object

geom_density

{GGPLOT2}

Generates a density plot

ggtitle

{GGPLOT2}

Generates a title for a ggplot graph

which.max

{base}

return index of the largest value in a vector

boxplot

{graphics}

Plot a simple box plot

set.seed

{base}

Initialise a pseudorandom number generator.

geom_histogram

{GGPLOT2}

Generates a histogram

names

{base}

Retrieve names of a list/vector

tabulate

{base}

Counts the number of times each integer occurs in an integer-only vector

rnorm

{base}

Generate random numbers from a normal distribution

theme_bw

{GGPLOT2}

A black and white ggplot theme

rbeta

{stats}

Beta Random Number Generating Function

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

ggplot

{GGPLOT2}

Create a ggplot graph

as.data.frame

{base}

Functions to check if an object is a data frame, or coerce it if possible.

library

{base}

Load an R package

plot

{graphics}

Generic function from base R to produce a plot

runif

{stats}

Draws ranndom numbers from the uniform distribution

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

xlab

{GGPLOT2}

Label the x axis (ggplot)

ylab

{GGPLOT2}

Label the y axis (ggplot)

unique

{base}

get unique elements

c

{base}

Combine values/vectors into a vector

read.spss

{foreign}

Read a .sav file (SPSS data)

The end!